package com.yan.service;

import com.yan.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {
    public void insert(User User);

    public User getByName(String username);

    public String find(String username);

    public List<User> list();

    public void update(User User);

    public void delete(int UserId);
}
